package com.itheima.health.service.impl;

import com.itheima.health.dao.RoleDao;
import com.itheima.health.pojo.Permission;
import com.itheima.health.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;
    @Override
    public Set<Permission> findPermission(Integer roleId) {
        return roleDao.selectPermission(roleId);
    }

}
